home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13159 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: FAQ list overspecificity (was: Very Simple <maths.h> problem...)
  5. Date: Thu, 04 Apr 96 23:13:18 GMT
  6. Organization: none
  7. Message-ID: <828659598snz@genesis.demon.co.uk>
  8. References: <4jf0c9$rs8@nic.umass.edu> <315B11FD.6460@oc.com> <DpAtJz.5z5@eskimo.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <DpAtJz.5z5@eskimo.com> scs@eskimo.com "Steve Summit" writes:
  15.  
  16. >In article <315B11FD.6460@oc.com>, Larry Weiss <lfw@oc.com> writes:
  17. >> Eugene K Hall wrote:
  18. >>> ld: Unresolved: exp
  19. >> 
  20. >> The answer can be found by extrapolating from this comp.lang.c FAQ entry:
  21. >> 
  22. >>    14.3:   I'm trying to do some simple trig, and I am #including <math.h>,
  23. >>            but I keep getting "undefined: sin" compilation errors.
  24. >>  
  25. >>    A:      Make sure you're actually linking with the math library.  For
  26. >>            instance, under Unix, you usually need to use the -lm option...
  27. >
  28. >The upside of the question as it's currently worded is that it
  29. >appeals to the FAQ maintainer's sense of how the game ought to be
  30. >played.  The downsides are that someone who knows he's not
  31. >"trying to do some simple trig," or who is searching mechanically
  32. >for the name of the one <math.h> routine he *is* having problems
  33. >with, may overlook question 14.3.
  34.  
  35. I would prefer to see a couple of common functions listed there (e.g. sin,
  36. sqrt, pow, fabs) ehich should make it clear that this does extrapolate
  37. to other math.h functions and has a better chance of matching a text
  38. search.
  39.  
  40. >I *do* assume, and hope, that someone reading 14.3 can
  41. >extrapolate to other <math.h> functions.  Perhaps I doth assume
  42. >too much.  Comments?
  43.  
  44. If it reduces the number of inappropriate posts to the newsgroup,
  45. I'm for it.
  46.  
  47. -- 
  48. -----------------------------------------
  49. Lawrence Kirby | fred@genesis.demon.co.uk
  50. Wilts, England | 70734.126@compuserve.com
  51. -----------------------------------------
  52.